-- GENERATED SPELL FOR [Rage Talon Dragonspawn] --


function spell0_9096(pUnit, Event) --@Fixate,n/a--
pUnit:FullCastSpellOnTarget(12021,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9096', 10264, 1)
end

function spell1_9096(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_9096', 523, 1)
end

function spell2_9096(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(15580,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9096', 604, 1)
end

function spell3_9096(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9096', 30299, 1)
end

function spell4_9096(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_9096', 625, 1)
end

function Sorts_9096(pUnit, Event)
local choix_sorts_9096 = math.random(0, 4)
if choix_sorts_9096 == 0 then
pUnit:RegisterEvent('spell0_9096', 1, 1)
end
if choix_sorts_9096 == 1 then
pUnit:RegisterEvent('spell1_9096', 1, 1)
end
if choix_sorts_9096 == 2 then
pUnit:RegisterEvent('spell2_9096', 1, 1)
end
if choix_sorts_9096 == 3 then
pUnit:RegisterEvent('spell3_9096', 1, 1)
end
if choix_sorts_9096 == 4 then
pUnit:RegisterEvent('spell4_9096', 1, 1)
end
end

function mob9096_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9096', math.random(1500, 3000), 1)
end

function mob9096_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9096_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9096_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9096, 1, 'mob9096_Action')
RegisterUnitEvent(9096, 2, 'mob9096_Leave')
RegisterUnitEvent(9096, 3, 'mob9096_Kill')
RegisterUnitEvent(9096, 4, 'mob9096_Die')
